/**
 * @date 11:36:38 AM
 * IEducationSMSDao.java
 * Administrator
 * TODO
 */
package com.qs.education.bean.dao;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.qs.education.bean.entity.EducationSMS;

/**
 * @class IEducationSMSDao	
 * @author Warren
 * @description
 * @date Nov 2, 2018 
 */
@Repository
public interface IEducationSMSDao extends IBaseDao<EducationSMS>{
	
	/**
	 * @author Warren
	 * @param mobile
	 * @return EducationSMS
	 * @description 根据手机号码查询 
	 * @date Nov 2, 2018
	 */
	public EducationSMS findEducationSMSByMobile(String mobile);
	
	/**
	 * @author Warren
	 * @param es
	 * @return boolean
	 * @description
	 * @date Nov 2, 2018
	 */
	public boolean saveEducationSMS(EducationSMS es);
	
	/**
	 * @author Warren
	 * @param es
	 * @return boolean
	 * @description
	 * @date Nov 5, 2018
	 */
	public boolean updateEducationSMS(EducationSMS es);

	/** 
	 * @Description  查询所有符合条件的SMS
	 * @author Jason
	 * @date Nov 16, 2018
	 * @param educationSMS
	 * @param page
	 * @param size
	 * @return
	 */
	public List<EducationSMS> getSMSList(String mobile, Integer page, Integer size);

	/**
	 * @Description 查询符合条件的SMS的数量
	 * @author Jason
	 * @date Nov 16, 2018
	 * @param mobile
	 * @return
	 */
	public int getSMSCount(String mobile);
}
